import { _decorator, Component, Node } from 'cc';
import { audioManager } from './framework/WebAudioManager.mjs';
import { GameManager } from './GameManager';
const { ccclass, property } = _decorator;
import { CameraManager } from './framework/CameraManager.mjs';

@ccclass('Cube')
export class Cube extends Component {
    @property(Node)
    cube: Node = null;


    start() {
        // audioManager.playMusic("bm_bgm", true);
        let curState = GameManager.getInstance().gameState;
        if (curState == 0) {
            console.log("game not start");
        } else if (curState == 1) {
            console.log("game start");
        }
    }

    update(deltaTime: number) {
        
    }
}


